﻿<%@ Page Title="" Language="C#" MasterPageFile="~/SkillifyMaster.master" AutoEventWireup="true" CodeFile="ViewTestReport.aspx.cs" Inherits="Admin_ViewTestReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1 {
            width: 100%;
        }
        .style2
        {
            width: 239px;
        }
        .style3
        {
            width: 133px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table class="style1">

        <tr>
            <td align="right">
                <h2><asp:Label ID="lablViewAss" runat="server" Text="View Test Report"></asp:Label></h2>
            </td>
        </tr>

        <tr>
            <td>
                <table align="left" cellspacing="5" style="border: 4px outset orange;" width="100%">
                    <tr>
                        <td align="right" width="20%">
                            <b><asp:Label ID="lablTest" runat="server" Text="Test Name"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablTestName" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablSub" runat="server" Text="Subject"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablSubject" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablTop" runat="server" Text="Topic"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablTopic" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablNoOfQues" runat="server" Text="No Of  Questions"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablNoOfQuestion" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablCutoff" runat="server" Text="CutOffMarks"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablCutOffMarks" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablNoOfStud" runat="server" Text="No Of Students"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="LablNoOfStudents" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablComp" runat="server" Text="Completed By"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablCompletedBy" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>

                    <tr>
                        <td align="right" width="20%">
                           <b><asp:Label ID="lablPending" runat="server" Text="Pending By"></asp:Label></b>
                        </td>

                        <td>
                        &nbsp&nbsp
                            <b><asp:Label ID="lablPendingBy" runat="server" ForeColor="Black"></asp:Label></b>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td>
                <table width="100%">
                    <tr>
  <td height="30px" class="style3">
      <asp:LinkButton ID="lnkTestCompleted" runat="server" onclick="lnkTestCompleted_Click" 
          ><b>Test Completed</b></asp:LinkButton>(<b><asp:Label ID="lablCompletedCount" runat="server"
                                              Text="" ForeColor="Black"></asp:Label></b>)

  </td>
  
  <td width="20px">|</td>
  
  <td class="style2">
      <asp:LinkButton ID="lnkTestNotCompleted" runat="server" 
          onclick="lnkTestNotCompleted_Click" ><b>Test Attempted But not completed</b></asp:LinkButton>(<b><asp:Label ID="lablNotCompletedCount" runat="server"
                                              Text="" ForeColor="Black"></asp:Label></b>)

  </td>

    <td width="20px">|</td>
  
  <td>
      <asp:LinkButton ID="lnkTestNotAttempted" runat="server" 
          onclick="lnkTestNotAttempted_Click" ><b>Test Not Attempted</b></asp:LinkButton>(<b><asp:Label ID="lablNotAttemptedCount" runat="server"
                                              Text="" ForeColor="Black"></asp:Label></b>)

  </td>



  
  </tr>
                </table>
            </td>
        </tr>

        <tr>
            <td>
               <asp:GridView ID="gvTest" runat="server" AutoGenerateColumns="False" 
                    BackColor="LightGoldenrodYellow" 
                                BorderColor="Tan" BorderWidth="1px" 
            CellPadding="2" ForeColor="Black" GridLines="Vertical" DataKeyNames="TestAttemptId" 
                        Width="930px" onrowcommand="gvAssignment_RowCommand">
            <AlternatingRowStyle BackColor="PaleGoldenrod" />
                    <Columns>
                            <asp:BoundField DataField="TestAttemptId" HeaderText="AttemptId" 
                                SortExpression="TestAttemptId" />
                            <asp:BoundField DataField="userName" HeaderText="Name" 
                                SortExpression="userName" />
                            <asp:BoundField DataField="AttemptNo" HeaderText="AttemptNo" 
                                SortExpression="AttemptNo" />
                            <asp:BoundField DataField="Score" HeaderText="Marks" 
                                SortExpression="MarksObtained" />
                           <asp:TemplateField HeaderText="Result">
                                <ItemTemplate>
                                    <asp:Button ID="btnScore" runat="server" Text="ScoreCard"
                                        CommandName="btnScoreClick" CommandArgument='<%# Eval("TestAttemptId") %>'
                                       BackColor="#E49642" BorderColor="#CC7A24" ForeColor="White"/>
                                </ItemTemplate>
                            </asp:TemplateField>

                            <asp:TemplateField>
                                <HeaderTemplate>
                                    <asp:Label ID="lablPerformance" runat="server" Text="Performance"></asp:Label>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="linkPerformance" runat="server" Font-Underline="true" CommandName="btnLinkPerformanceClick" CommandArgument='<%# Eval("TestAttemptId") %>'>View Performance</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <EditRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <EmptyDataRowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
         <FooterStyle BackColor="Tan" />
            <HeaderStyle BackColor="#CB6811" Font-Bold="True" ForeColor="White" HorizontalAlign="Center" />
            <PagerStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" 
                HorizontalAlign="Center" />
            <RowStyle HorizontalAlign="Center" VerticalAlign="Middle" />
            <SelectedRowStyle BackColor="#E49642" ForeColor="GhostWhite" />
            <SortedAscendingCellStyle BackColor="#FAFAE7" />
            <SortedAscendingHeaderStyle BackColor="#DAC09E" />
            <SortedDescendingCellStyle BackColor="#E1DB9C" />
            <SortedDescendingHeaderStyle BackColor="#C2A47B" />
                </asp:GridView> 
            </td>
        </tr>
    </table>
</asp:Content>

